//
//  TKMainGoodsDetailSectionView.m
//  Ticket
//
//  Created by 小禹宝宝 on 2017/10/24.
//  Copyright © 2017年 cy55. All rights reserved.
//

#import "TKMainGoodsDetailSectionView.h"
@interface TKMainGoodsDetailSectionView ()
@property (nonatomic, strong) UIView *lineView;

@end
@implementation TKMainGoodsDetailSectionView

- (void)awakeFromNib {
    [super awakeFromNib];
    [self addLineView];
    self.backgroundColor = [UIColor whiteColor];
    self.shadowView.backgroundColor = [BLColorConfig backgroundColor];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)addLineView
{
    _lineView = [[UIView alloc] init];
    _lineView.backgroundColor = [BLColorConfig lineColor];
    [self addSubview:_lineView];
    CGFloat height = 1.f/[UIScreen mainScreen].scale;
    [_lineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.mas_equalTo(height);
        make.leading.mas_equalTo(0);
        make.trailing.mas_equalTo(0);
        make.bottom.mas_equalTo(-height);
    }];
}
@end
